package logic.ui.cell
{
	import component.show.containers.tree.TreeCellRenderer;
	import component.show.containers.tree.TreeCellRendererVO;
	
	import flash.display.DisplayObject;
	
	import logic.def.Assets;

	public class ScanComponent_LstCell extends TreeCellRenderer
	{	
		private var m_bg : DisplayObject; 
		
		public function ScanComponent_LstCell()
		{
			this.mouseChildren = false;
		}
		
		override public function set data(value:TreeCellRendererVO):void 
		{
			super.data = value;
			
			if (value != null) 
			{
				this.resloveData();
			}
			
			if(!m_bg)
			{
				m_bg = new Assets[value.label];
				
				this.addChild(m_bg);
			}
		}
	}
}